// 首页
import request from "../utils/request.js";
// 支付视频课程订单[抖音]
const orderPay = '/api/users/video-course-orders/douyin-pay';
// 创建视频课程订单
const createOrder = '/api/users/video-course-orders/create';
// 创建优选课程订单
const createGoodOrder = '/api/users/excellent-course-orders/create';
// 支付视频课程订单[微信]
const orderPaywx = '/api/users/video-course-orders/wechat-pay';
const payyx = '/api/users/excellent-course-orders/wechat-pay';


export function createOrderDY(data) {
  return request({
    url: createOrder,
    method: 'post',
    data
  })
}

export function orderPayDY(data) {
  return request({
    url: orderPay,
    method: 'post',
    data
  })
}
// 支付视频课程订单[微信]
export function orderPayWx(data) {
  return request({
    url: orderPaywx,
    method: 'post',
    data
  })
}
export function orderPayWxyx(data) {
  return request({
    url: payyx,
    method: 'post',
    data
  })
}
// 创建优选课程订单
export function createGoodOrders(data) {
  return request({
    url: createGoodOrder,
    method: 'post',
    data
  })
}

// pc zfb  yx课程
export function zfbxyPay(data) {
  return request({
    url: '/api/users/excellent-course-orders/alipay-pay',
    method: 'post',
    data
  })
}
